<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function fullEditor($fckName = 'FCKeditor1',  $jsLoad = 0)
{
  $str = '';
  if ($jsLoad == 0) {
    $str .= '<link href="/data/fckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/data/fckeditor/fckeditor.js"></script>'; 
  }
  $str .= '<script type="text/javascript">
    var oFCKeditor = new FCKeditor("'.$fckName.'") ;
    oFCKeditor.BasePath = "/data/fckeditor/";
    oFCKeditor.Height	= 300;
    oFCKeditor.Value	= "<p> hello world </p>" ;
    oFCKeditor.Create() ;
		</script>';
  return $str;
}